home *** CD-ROM | disk | FTP | other *** search
/ Graphics Plus / Graphics Plus.iso / amiga / plotting / gnuplot3.lzh / gnuplot / makefile.ami < prev    next >
Makefile  |  1991-09-20  |  3KB  |  123 lines

  1. #
  2. #   Makefile for the Amiga             Pat R. Empleo
  3. #                                      Sept 1991
  4. #      Manx Aztec C 5.2 beta version
  5. #
  6. #   Usage:
  7. #
  8. #      make -f makefile.ami
  9. #
  10. #
  11.  
  12. # where to install help file gnuplot.gih
  13. HELPDEST=GNUPLOT:docs/gnuplot.gih
  14. # Where to send email about bugs and comments (locally)
  15. EMAIL="pixar\!bug-gnuplot@sun.com"
  16.  
  17. #
  18. # Manx Aztec C v5.2 compiler options
  19. #
  20. # -DVFORK  We use this switch to invoke fexecv()
  21. #
  22. CC     = cc
  23. CFLAGS = -DVFORK -DNOGAMMA -DMEMSET -DMEMCPY -DAMIGA_AC_5 -fa -sab -wosw -MR
  24.  
  25. #
  26. # Manx Aztec C v5.2 linker options
  27. #
  28. LD   = ln
  29. LIBS = -lma -lc
  30.  
  31. #
  32. # Terminal (device) support --- see term.h
  33. #
  34. TERMFLAGS = -Iterm
  35.  
  36. #
  37. # List of object files except term.o, version.o
  38. #
  39. OBJS = bitmap.o command.o contour.o eval.o graphics.o graph3d.o help.o \
  40.        internal.o misc.o parse.o plot.o scanner.o \
  41.        setshow.o standard.o util.o  
  42.  
  43. #
  44. # List of sources
  45. #
  46. CSOURCE1 = command.c setshow.c 
  47. CSOURCE2 = help.c graphics.c graph3d.c internal.c 
  48. CSOURCE3 = misc.c eval.c parse.c plot.c readline.c scanner.c standard.c 
  49. CSOURCE4 = bitmap.c term.c util.c version.c
  50. CSOURCE5 = term/amiga.trm term/aed.trm term/cgi.trm term/dumb.trm term/dxf.trm \
  51.     term/dxy.trm term/eepic.trm term/epson.trm term/fig.trm \
  52.     term/hp26.trm term/hp2648.trm term/hpgl.trm term/hpljii.trm \
  53.     term/apollo.trm term/gpr.trm
  54. CSOURCE6 = term/impcodes.h term/imagen.trm term/object.h \
  55.     term/iris4d.trm term/kyo.trm term/latex.trm term/pc.trm 
  56. CSOURCE7 = term/post.trm term/qms.trm term/regis.trm term/sun.trm \
  57.     term/t410x.trm term/tek.trm term/unixpc.trm term/unixplot.trm \
  58.     term/v384.trm term/x11.trm term/bigfig.trm term/vws.trm gnuplot_x11.c
  59. CSOURCE8 = contour.c
  60.  
  61. #
  62. # Docs
  63. #
  64. DOCS1 = docs/Makefile docs/README docs/checkdoc.c docs/doc2gih.c \
  65.     docs/doc2hlp.c docs/doc2hlp.com docs/doc2ms.c docs/doc2tex.c \
  66.     docs/gnuplot.1 docs/lasergnu.1 docs/toc_entry.sty \
  67.     docs/titlepage.ms docs/titlepage.tex
  68. DOCS2 = docs/gnuplot.doc
  69. DOCS3 = docs/latextut/Makefile docs/latextut/eg1.plt \
  70.     docs/latextut/eg2.plt docs/latextut/eg3.dat docs/latextut/eg3.plt \
  71.     docs/latextut/eg4.plt docs/latextut/eg5.plt docs/latextut/eg6.plt \
  72.     docs/latextut/header.tex docs/latextut/tutorial.tex \
  73.     docs/latextut/linepoint.plt
  74.  
  75. #
  76. # Targets
  77. #
  78.  
  79. default: gnuplot doc
  80.  
  81. gnuplot: $(OBJS) term.o version.o
  82.     $(LD) $(OBJS) term.o version.o $(LIBS) -o gnuplot
  83.  
  84. doc:
  85.     cd docs
  86.     make -f makefile.ami gih
  87.  
  88. #
  89. # Dependencies
  90. #
  91. plot.o: plot.c
  92.     $(CC) $(CFLAGS) plot.c
  93.  
  94. term.o: term.h term.c $(CSOURCE5) $(CSOURCE6) $(CSOURCE7)
  95.     $(CC) $(CFLAGS) $(TERMFLAGS) term.c
  96.  
  97. version.o:
  98.     $(CC) $(CFLAGS) -DCONTACT=$(EMAIL) version.c
  99.  
  100. $(OBJS): plot.h
  101.     $(CC) $(CFLAGS) $*.c
  102.  
  103. command.o:
  104.     $(CC) $(CFLAGS) -c command.c -DHELPFILE="$(HELPDEST)"
  105.  
  106. command.o help.o misc.o: help.h
  107.  
  108. command.o graphics.o graph3d.o misc.o plot.o setshow.o term.o: setshow.h
  109.  
  110. bitmap.o term.o: bitmap.h
  111.  
  112. #
  113. # misc
  114. #
  115. clean:
  116.     delete #?.o
  117.  
  118. veryclean: spotless
  119.  
  120. spotless:
  121.     delete #?.o gnuplot
  122.  
  123.